<template>
    <div class="xtx-pay-page">
        <div class="container">
        <!-- 付款信息 -->
            <div class="pay-info">
                <span class="icon iconfont icon-queren2"></span>
                <div class="tip">
                    <p>{{ result }}</p>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import { mapState } from 'vuex'
import dayjs from 'dayjs'


export default {
    name:'Pay',
    mounted(){
        // this.getPayInfoData()

    },
    beforeDestroy() {
        this.timer && clearInterval(this.timer)
        this.timer=null;
    },
    computed:{
      ...mapState('checkout',['result'])
    }
}
</script>

<style scoped lang="scss">
.xtx-pay-page {
    margin-top: 20px;
    }

    .pay-info {

    background: #FCFAF7;
    display: flex;
    align-items: center;
    height: 240px;
    padding: 0 80px;

    .icon {
        font-size: 80px;
        color: #1dc779;
    }

    .tip {
        padding-left: 10px;
        flex: 1;

        p {
        &:first-child {
            font-size: 20px;
            margin-bottom: 5px;
        }

        &:last-child {
            color: #999;
            font-size: 16px;
        }
        }
    }

    .amount {
        span {
        &:first-child {
            font-size: 16px;
            color: #999;
        }

        &:last-child {
            color: $priceColor;
            font-size: 20px;
        }
        }
    }
    }

    .pay-type {
    margin-top: 20px;
    background-color: #FCFAF7;
    padding-bottom: 70px;

    p {
        line-height: 70px;
        height: 70px;
        padding-left: 30px;
        font-size: 16px;

        &.head {
        border-bottom: 1px solid #f5f5f5;
        }
    }

    .btn {
        width: 150px;
        height: 50px;
        border: 1px solid #e4e4e4;
        text-align: center;
        line-height: 48px;
        margin-left: 30px;
        color: #666666;
        display: inline-block;

        &.active,
        &:hover {
        border-color: $xtxColor;
        }

        &.alipay {
        background: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/7b6b02396368c9314528c0bbd85a2e06.png) no-repeat center / contain;
        }

        &.wx {
        background: url(https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/c66f98cff8649bd5ba722c2e8067c6ca.jpg) no-repeat center / contain;
        }
    }
}
</style>
